/***************************************************************************\
 * The Mattise Kernel														*
 * Copyright 2007 Matthew Iselin											*
 * Licensed under the GPL													*
 *																			*
 * iostream.cc																*
 *																			*
 * Test of class features in the C++ rewrite. Will be more heavily used in	*
 * userland programs.														*
 *																			*
\***************************************************************************/

#include <iostream>
#include <console.h>
#include <math.h>
#include <stdio.h>

/// Constructor for the basic output stream
basic_ostream::basic_ostream()
{
	//
}

/// Destructor for the basic output stream
basic_ostream::~basic_ostream()
{
	//
}

/// The << operator (for strings)
basic_ostream& basic_ostream::operator << ( const char* val )
{
	kprintf( "%s", val );
	return *this;
}

/// The << operator (for integers)
basic_ostream& basic_ostream::operator << ( int val )
{
	kprintf( "%d", val );
	return *this;
}

/// Global object - cout
basic_ostream cout;
